import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
export default function loadGLb(url) {
    console.log(url,'url');
    
    const loader = new GLTFLoader();
    loader.load(url, function (gltf) {
        console.log('控制台查看加载gltf文件返回的对象结构', gltf);
        console.log('gltf对象场景属性', gltf.scene);
        // 返回的场景对象gltf.scene插入到threejs场景中
        window.threescene.add(gltf.scene);
    })
}
